<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>标题</title>
    <script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script>
</head>
<body>
    <div id="root">
    
    </div>
</body>
    <script type="text/javascript">
        Vue.config.productionTip = false

        function demo(){
            this.a = 1
            this.b = 2
        }

        const d = new demo()

        console.log(demo.prototype) //显示原型属性
        console.log(d.__proto__)    //隐式原型属性

        console.log(demo.prototype === d.__proto__)  //结果是相等的

        //追加一个属性名叫做x,其值为99
        demo.prototype.x=99

        console.log('@',d.x)
        new Vue({
            el:'#root',
            data:{
              
            },
            computed:{
            //计算方法
            
            },
            methods:{
            //方法
            
            },
            filters:{
            //过滤器
            
            }
        })
        </script>
    </html>
